package com.news.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.news.biz.News_CategoryBiz;
import com.news.dao.News_CategoryDao;
import com.news.entity.News_Category;

@Service("categoryBiz")
public class News_CategoryBizImpl implements News_CategoryBiz {

	@Autowired
	private News_CategoryDao news_CategoryDao;
	

	public List<News_Category> getAll() {
		
		return news_CategoryDao.getAll();
	}

	public News_Category getNews_CategoryById(int id) {
		return news_CategoryDao.getNews_CategoryById(id);
	}

}
